package com.cxf.cxftimer.service.jobhandler;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * description: AdgroupBaiduJobHandler <br>
 * date: 2021/12/10 19:12 <br>
 * author: cxf <br>
 * version: 1.0 <br>
 */
/*@JobHandler(value="sem_baidu_adgroup_job")*/
@Service
public class AdgroupBaiduJobHandler extends IJobHandler {

    private static final Logger logger = LoggerFactory.getLogger(AdgroupBaiduJobHandler.class);


    @Override
    public void execute() throws Exception {
/*        ShardingUtil.ShardingVO shardingVO = ShardingUtil.getShardingVo();

        int shardingTotal = shardingVO.getTotal();

        int shardingIndex = shardingVO.getIndex();

        int queueIndex = 1;

        ConcurrentLinkedQueue<SemAccountInfoEntity> baiduAccountQueue = CacheUtil.getBaiduAccountQueue();

        for (SemAccountInfoEntity semAccountInfoEntity : baiduAccountQueue) {
            if (shardingIndex == queueIndex % shardingTotal) {
                getBaiduAdgroupType(semAccountInfoEntity);
            }
            queueIndex++;
        }*/
    }
}
